using System;
namespace AppToolKit.Business.Observer
{
	[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
	public sealed class ObserveAttribute : Attribute
	{
		private string eventName_;
		private Type model_;
		private CallbackMode mode_ = CallbackMode.Sync;
		public Type Model
		{
			get
			{
				return this.model_;
			}
		}
		public string EventName
		{
			get
			{
				return this.eventName_;
			}
		}
		public int Prior
		{
			get
			{
				throw new NotImplementedException();
			}
			set
			{
				throw new NotImplementedException();
			}
		}
		public CallbackMode Mode
		{
			get
			{
				return this.mode_;
			}
			set
			{
				this.mode_ = value;
			}
		}
		public ObserveAttribute(string eventName, Type model)
		{
			this.eventName_ = eventName;
			this.model_ = model;
		}
	}
}
